class Employee:
  def __init__(self):
    pass

  def calculate_salary(self, time, hour_salary):
    pass


class FullTimeEmployee(Employee):
  def calculate_salary(self, time, hour_salary):
    '''
    计算全职员工薪资
    :param time:工时
    :param hour_salary:时薪
    :return:
    '''
    super().calculate_salary(time, hour_salary)
    return time * hour_salary


class PartTimeEmployee(Employee):
  def calculate_salary(self, time, hour_salary):
    '''
        计算兼职员工薪资
        :param time:工时
        :param hour_salary:时薪
        :return:
        '''
    super().calculate_salary(time, hour_salary)
    return time * hour_salary

# 创建对象
fe = FullTimeEmployee()
pe = PartTimeEmployee()

print(f"全职员工工资为：{fe.calculate_salary(160, 100)}")
print(f"兼职员工工资为：{pe.calculate_salary(80, 50)}")
